package org.example.controller;

import org.example.feign.goods.GoodsFeign;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.HashMap;


@RestController
@RequestMapping("/member")
public class DemoController {

    @Resource
    GoodsFeign goodsFeign;

    @GetMapping("test")
    public String test(){
        HashMap<String, String> index = goodsFeign.index();
        System.out.println(index);
        return "111111111111111111222";
    }
}
